package com.gopay.bis.payease.ebank.impl;

import com.gopay.bis.payease.ebank.operation.PayEaseCertHelperQuery;
import com.gopay.common.domain.bank.BaseMessage;
import com.gopay.common.domain.bank.payease.ebank.PayEaseMessage;
import com.gopay.common.exception.GopayException;
import com.gopay.remote.bank.ICertHelper;
import com.gopay.remote.bank.businesses.BankService;

/**
 * 
 * @PayEaseBankServiceImpl.java
 * @author Administrator
 * @2015-9-15 上午11:35:17 www.gopay.com.cn Inc.All rights reserved.
 */
public class PayEaseBankServiceImpl implements BankService {
    private ICertHelper payEaseCertHelper;
    private PayEaseCertHelperQuery payEaseCertHelperQuery;

    public Object sign(BaseMessage message) throws GopayException {
        return payEaseCertHelper.sign(message);
    }

    public Object verify(BaseMessage message) throws GopayException {
        return payEaseCertHelper.verify(message);
    }

    @Override
    public Object query(Object message) throws GopayException {
    	PayEaseMessage query = payEaseCertHelperQuery.query((BaseMessage)message);
        return query;
    }

    @Override
    public Object dayend(Object arg0) throws GopayException {
        // TODO Auto-generated method stub
        return null;
    }

    public void setPayEaseCertHelper(ICertHelper payEaseCertHelper) {
        this.payEaseCertHelper = payEaseCertHelper;
    }

	public void setPayEaseCertHelperQuery(
			PayEaseCertHelperQuery payEaseCertHelperQuery) {
		this.payEaseCertHelperQuery = payEaseCertHelperQuery;
	}

	@Override
	public Object refund(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

}
